package com.jsbj.user.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 登录记录表
 * </p>
 *
 * @author jsbj
 * @since 2022-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysLoginRecord对象", description="登录记录表")
public class SysLoginRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "登陆id")
    private String loginId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "登录信息")
    private String message;

    @ApiModelProperty(value = "最后变更时间")
    private Date loginTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "登录时间")
    @TableField(exist = false)
    private String loginTimeStr;


}
